home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000194_Use-Author-Add…-Header@[127.1]_Sat Jun 2 13:06:21 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  7KB  |  181 lines

  1. Article: 12502 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!news.verio.net!nntp.frontiernet.net!nntp-new.frontiernet.net!nntp.gblx.net!border1.nntp.aus1.giganews.com!nntp2.aus1.giganews.com!newshub2.rdc1.sfba.home.com!news.home.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!hub1.nntpserver.com!news-in.nibble.net!newsfeed01.sul.t-online.de!t-online.de!newsrouter.chello.at!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2news
  3. Date: 2 Jun 2001 01:43:25 -0700
  4. Message-ID: <20010602084325.23110.cpmta@c009.snv.cp.net>
  5. X-Sent: 2 Jun 2001 08:43:25 GMT
  6. Content-Type: text/plain
  7. Content-Disposition: inline
  8. Mime-Version: 1.0
  9. From:  <Use-Author-Address-Header@[127.1]>
  10. Author-Address: leganii <AT> surfree <DOT> com
  11. Cc: screen@uni-erlangen.de, cespedes@debian.org, scoug-programming@scoug.com,
  12.   scoug-general@scoug.com
  13. X-Mailer: Web Mail 3.9.2.3
  14. Subject: Smashing through Screen with Kermit
  15. X-Sent-From: leganii@surfree.com
  16. Mail-To-News-Contact: postmaster@nym.alias.net
  17. Organization: mail2news@nym.alias.net
  18. Newsgroups: comp.protocols.kermit.misc
  19. Lines: 159
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12502
  21.  
  22.  
  23. As an intermediate step to getting them ethernetted,
  24. I finally got my OS/2 and Debian boxes connected over
  25. a Null-modem cable.  I figure that being able to twiddle
  26. configuration settings and reboot them sitting at one
  27. console has to simplify the process for one who
  28. has a lot to learn about networking.
  29. Until I have Ethernet going the serial connection provides
  30. a working 'out-of-band' connection.
  31. How hard can it be to network the computers if they are
  32. already networked?
  33. This is more functional than a lot might think
  34. having 'screen', a full screen 'window manager'
  35. running on the Debian box, enabling multiple sessions
  36. with one login, split screens, scrollback, cut and paste,
  37. etc. from a text interface.
  38. There are only two disadvantage to this that I know so far.
  39.  
  40. 1) You can't take advantage of recent releases of Lynx, W3M,
  41. and other text mode browsers to view images with viewers
  42. like zgv.
  43.  
  44. 2) The very first thing brought up in the screen FAQ is
  45. 'Why can't I transfer files with Kermit while screen is running?'.
  46. The answer given, that you can't, is true only for the case
  47. where you give up without analyzing the problem and
  48. determining how Kermit transfer has to be configured to work.
  49. Yes, over a simple serial connection you are restricted
  50. to leaving other screen managed sessions to themselves
  51. while the transfer goes on, but for me that is more convienient
  52. than having to shutdown screen.
  53. (I find it so usefull I 'exec screen -R' at the end my
  54. bash_profile file so that it is always running when I login.)
  55.  
  56.  
  57. First add this line to /etc/inittab on the Debian machine
  58. to allow loggin in on port 'com2'/ttyS1:
  59.  
  60. T1:23:respawn:/sbin/getty -L ttyS1 57600 vt100
  61.  
  62. (You might also want to experiment with Lilo and/or GRUB,
  63. which allow control of boot-up over serial connections,
  64. but that might be for another write up.)
  65.  
  66. The following script, run with Kermit/2 from the OS/2
  67. end sets up C-Kermit on the Debian machine into server mode
  68. and sets both so that file transfers happen.
  69. The two external modem connection cables I'm using, spliced
  70. together with gender menders and null modem adaptors is
  71. kind of long (the PCs are in different rooms), and
  72. runs past some wire nests, and I'm not certain about shielding,
  73. so I found setting the allowed errors higher than the default
  74. seemed needed.  For a 36K file about 16 errors happened during
  75. transfer, so my setting is excessive, but does the trick.
  76. Without the settings of this script the transfer seemed to
  77. lockup, as the screen FAQ indicated.
  78. (If anyone knows any improvements, feel free to contact me.)
  79.  
  80. #     Screen Smasher
  81. #    ( To 'Smash through Screen with file transfers' )
  82. #
  83. #    for setting up kermit server
  84. #    at the other end to penetrate a
  85. #    connection where the UNIX session manager
  86. #    'screen' is also running at the other end,
  87. #    without having to shutdown 'screen'.
  88. #
  89. #    D.E. Legan 26/05/2001
  90.  
  91.  
  92. #  set this, last character of the remote prompt,
  93. #  in one place, so it can easily be changed for
  94. #  different circumstances:
  95. define rprompt {>}
  96.  
  97. #    first do as I *do*, not just as I *say*,
  98. #    set these things locally on OS/2 Kermit/2:
  99. set prefixing all
  100. set send timeout 1 fixed
  101. set receive timeout 1
  102. set send start-of-packet 65
  103. set receive start-of-packet 65
  104. set transfer locking-shift on
  105. set retry  500
  106. #     ....  nothing succeeds like excess!
  107.  
  108. :bangaway
  109.  
  110. #   First, make an attempt to make sure kermit is actually running
  111. #   on the other end.  This seems to do no harm if  it already is.
  112. #   Although I actually have never used it for such, the help
  113. #   for C-Kermit indicates that the 'kermit' command issued
  114. #   at the kermit prompt serves to set command line switches
  115. #   after it has already been started.  Here, if the other end
  116. #   is still at the shell prompt, it starts kermit.
  117. #   If kermit is already running, as already mentioned, it does no harm.
  118. output  kermit\13
  119. input 5 \m(rprompt)
  120. if failure goto bangaway
  121.  
  122. #  This next command causes all non-visable, or non-standard
  123. #  bytes to be prefixed to be a standard ASCII character.
  124. #  While differing in specific details, in essence it can
  125. #  be likened to uuencoding or MIME base-64 encoding on
  126. #  the fly, allowing only standard, visable ASCII characters
  127. #  and carriage returns over the connection.
  128. #  Surely these will not interfere with 'screen''s operation!  :-)
  129. output  set prefixing all\13
  130. input 5 \m(rprompt)
  131. if failure goto bangaway
  132.  
  133. output  set send timeout 1 fixed\13
  134. input 5 \m(rprompt)
  135. if failure goto bangaway
  136.  
  137. output  set receive timeout 1\13
  138. input 5 \m(rprompt)
  139. if failure goto bangaway
  140.  
  141. #   Now set the start of packet character to simply the letter 'A':
  142. output  set send start-of-packet 65\13
  143. input 5 \m(rprompt)
  144. if failure goto bangaway
  145.  
  146. output  set receive start-of-packet 65\13
  147. input 5 \m(rprompt)
  148. if failure goto bangaway
  149.  
  150. # According to 'Using C-Kermit', the following is almost never bad,
  151. # so....
  152. output  set transfer locking-shift on\13
  153. input 5 \m(rprompt)
  154. if failure goto bangaway
  155.  
  156. output  set retry  500\13
  157. input 5 \m(rprompt)
  158. if failure goto bangaway
  159.  
  160. #  When developing this script, overlooked that this next one would
  161. #  have a different response than just the remote prompt,
  162. #  and thought that some how the local OS/2 machine was
  163. #  being put into server mode when 'kermit ready to serve...'
  164. #  was echoed on the local screen and then it locked up in an
  165. #  infinit loop.
  166. output  server\13
  167. input 5 kermit ready to serve...
  168. if failure goto bangaway
  169.  
  170.  
  171. #  now see what you can do:
  172. remote help
  173.  
  174.  
  175.  
  176.  
  177. Regards,
  178. Dallas E. Legan II  /  leganii@surfree.com  /  dallasii@kincyb.com
  179.  
  180. Powered by......Lynx, the Internet at hyperkinetic speed.
  181.